#include "image.h"
#include "imageproxy.h"

#include <iostream>

using namespace std;

int main()
{
	Image *pImage = new ImageProxy;
	Extent extent(3, 2), extent2;

	pImage->setExtent(extent);
	cout<<endl;

	extent2 = pImage->getExtent();
	cout<<endl;

	cout<<"Extent: ("
		<<extent2.width<<", "
		<<extent2.height<<")"<<endl;
	cout<<endl;

	pImage->show();
	cout<<endl;

	extent.width = 4;
	extent.height = 3;
	pImage->setExtent(extent);
	cout<<endl;

	extent2 = pImage->getExtent();
	cout<<endl;

	cout<<"Extent: ("
		<<extent2.width<<", "
		<<extent2.height<<")"<<endl;

	delete pImage, pImage = NULL;

	return 0;
}
